/*
 * src/syntax/get_input_words.c
 *
 * Harry Wei <harryxiyou@gmail.com>
 * 
 * Get input words for syntax analyser.
 */
#include <stdio.h>
#include <glib.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include "common.h"
#include "cp_ctrl.h"

int get_input_words(struct la *ctrl) {
	g_message("enter func %s", __func__);
	ctrl->v = g_strsplit(ctrl->buff, " ", 0);
	ctrl->v_len = g_strv_length(ctrl->v);
#if 0
	g_message("Test use ...");
	int i = 0;
	for (i = 0; i < ctrl->v_len; i++) {
		g_message("%d is %s", i, ctrl->v[i]);
	}
#endif
	g_message("leave func %s", __func__);
	return 0;
}
